#!/bin/bash
cgcreate -g memory:apache
cgclassify --sticky -g memory:apache /$(pidof apache2)
echo $1 > /sys/fs/cgroup/memory/apache/memory.limit_in_bytes
